package viethp.mtrade.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ALogin extends Activity implements OnClickListener{
	
	private Button btn_login;
	
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.a_login);
	
		init();
		addListener();
	}
	
	public void init(){
		btn_login = (Button) findViewById(R.id.btnlogin);
	}
	
	public void addListener(){
		btn_login.setOnClickListener(this);
	}

	public void onClick(View v) {
		switch(v.getId()){
			case R.id.btnlogin:
				Intent i = new Intent(getBaseContext(),AMain.class);
				startActivity(i);
                finish();
		}
		
	}
}
